<template>
  <div class="page-container">
    <el-tabs v-model="activeName">
      <el-tab-pane label="待发布产品" name="first">
        <Product v-if="activeName=== 'first'" :status="-1" />
      </el-tab-pane>
      <el-tab-pane label="下架产品" name="second">
        <Product v-if="activeName=== 'second'" :status="1" />
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>

import Product from './Product.vue'
export default {
  name: 'ProductList',
  components: {
    Product
  },
  data() {
    return {
      activeName: 'first'
    }
  },

  methods: {

  }
}
</script>

<style lang="scss" scoped>
</style>
